import request from '@api/request';
import { HttpUrl } from '@api/httpUrl';

// 请求监控列表
export function getMonitorList() {
    return request.get<MonitorConfig>(HttpUrl.getMonitorList);
}

// 请求监控详情
export function getMonitorView(streamUrl: string, wsPort: number) {
    return request.get(HttpUrl.getMonitorView, { params: { streamUrl, wsPort } });
}

// 关闭监控
export function stopMonitorView() {
    return request.get(HttpUrl.stopMonitorView);
}
